function gray=lumi2gray( luminance )
% converts lumimance data - 2D array double numbers from 0 to 1 - into
% grayscale image

gray(:,:,1) = uint8( luminance*256 );
gray(:,:,2) = uint8( luminance*256 );
gray(:,:,3) = uint8( luminance*256 );
